/**
 * Person类
 */
class Person 
{
	String name;
	String id;
	public Person() {};
	public Person(String name,String id)
	{
		this.name = name ;
		this.id = id;
	}
	public String toString()
	{
		return "Person[name=" + this.name + ",id=" + this.id + "]";
	}
}
/**
 * Student类
 */
class Student extends Person
{
	double math;
	double chinese;
	double english;
	
	public Student() {};
	public Student(String name ,String id ,double math,double chinese,double english)
	{
		super(name,id);
		this.math = math;
		this.chinese = chinese;
		this.english = english;
	}
	public String toString()
	{
		return "Person[name=" + this.name + ",id=" + this.id 
			+",Math=" + this.math 
			+",Chinese=" + this.chinese
			+",English=" + this.english
			+ "]";
	}
}
/**
 *	Teacher类
 */
class Teacher extends Person
{
	double salary;
	public Teacher() {};
	public Teacher(String name ,String id, double salary)
	{
		super(name,id);
		this.salary = salary;
	}
	public String toString()
	{
		return "Person[name=" + this.name + ",id=" + this.id 
			+ ",Salary=" + this.salary
			+ "]";
	}
}